﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Employee
    {
        //定义一个员工类，存放用户的工号、姓名和部门信息；
        //定义两个构造函数，一个是无参；
        //一个有参构造函数，对类的属性进行初始化。
        public int employeeID { get; set; }
        public string employeeName { get; set; }
        public string employeeDepartment { get; set; }

        public void staff() 
        {
            Console.WriteLine("员工工号为{0},员工姓名为{1},员工部门信息为{2}",this.employeeID,this.employeeName,this.employeeDepartment) ;
        }
        public Employee(int employeeID , string employeeName , string employeeDepartment) 
        {
            this.employeeID = employeeID;
            this.employeeName = employeeName;
            this.employeeDepartment = employeeDepartment;
        }
        public Employee() 
        {

        }
    }
}
